﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ruoxian_novel
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //打开登录界面
            LoginForm loginForm = new LoginForm();
            loginForm.ShowDialog();
            //是否成功登录
            if (!Exit.exit)
            {
                if (Yonghu.shenfen == "读者" || Yonghu.shenfen == "作者")
                {
                    Application.Run(new MainForm());
                }
                else if (Yonghu.shenfen == "管理员" || Yonghu.shenfen == "超管")
                {
                    Application.Run(new AdminForm());
                }
            }
        }
    }
}
